package com.cf.game.cowboy.config;

import com.cf.game.cowboy.msg.*;
import com.cf.serialize.MessageConvertService;
import com.cf.serialize.MessageRegister;

import org.springframework.stereotype.Component;

/**
 * game-server-MessageRegistorConfig
 *
 * @author <a href="2428922347@qq.com">Zhu mingming</a>
 * @info
 * @since 2018/5/7 下午 02:07
 */
@Component
public class CowboyMessageRegister implements MessageRegister {

    @Override
    public void register(MessageConvertService convertService) {
        convertService.registorMessageConvert(CowGameInfoRequest.type, CowGameInfoRequest.class);
        convertService.registorMessageConvert(CowGameInfoResponse.type, CowGameInfoResponse.class);
        convertService.registorMessageConvert(CowGameResultResponse.type, CowGameResultResponse.class);
        convertService.registorMessageConvert(CowStakeRequest.type, CowStakeRequest.class);
        convertService.registorMessageConvert(CowStakeResponse.type, CowStakeResponse.class);
        convertService.registorMessageConvert(CowUserInfoRequest.type, CowUserInfoRequest.class);
        convertService.registorMessageConvert(CowUserInfoResponse.type, CowUserInfoResponse.class);
    }
    
}
